<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>多维数组</title>
</head>

<body>
  <script>
    let table = new Array(10)
    for (let i = 0; i < table.length; i++) {
      table[i] = new Array(10)
    }
    console.log(table);

    for (let row = 0; row < table.length; row++) {

      for (let col = 0; col < table[row].length; col++) {
        table[row][col] = row * col
      }
    }
    // table.shift()
    console.log(table);
    console.log(table[9][7]);
  </script>
</body>

</html>